<?php

namespace app\common\job;

use Sanyc\Aliyun\AliyunEmail;
use think\queue\Job;
use think\Exception;
use Carbon\Carbon;
use think\Loader;
use think\Request;

class Caravan 
{

    public function intcar(Job $job, $data)
    {
        try {
            Request::instance()->module('common');
            Loader::model('Users')->getUserInfo($data['user_id'])->getCaravanInfo($data['caravan_id'])->initCaravanCarlendar(['start_date' => $data['start_date'], 'end_date' => $data['end_date']]);
            
        } catch (\Exception $e) {
            return false;
        }
        
        $job->delete();     
    }

}